<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<HTML>
<HEAD>
	<meta http-equiv="Content-Language" content="zh-cn">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="${pageContext.request.contextPath}/admin/css/Style.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="${pageContext.request.contextPath}/admin/js/public.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/admin/jquery/jquery-1.4.2.js"></script>
	<script src="${pageContext.request.contextPath}/admin/js/table2excel.js"></script>
	<script type="text/javascript">
	//删除订单
	function o_del() {   
		var msg = "您确定要删除该订单吗？";   
		if (confirm(msg)==true){   
		return true;   
		}else{   
		return false;   
		}   
	}   
	</script>
</HEAD>
<body>
	<br />
	<%--<form id="Form1" name="Form1" action="${pageContext.request.contextPath}/findOrderByManyCondition" method="post">--%>
		<table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
			<TBODY>
				<tr>
					<%--<td class="ta_01" align="center" bgColor="#afd1f3">--%>
						<%--<strong>查 询 条 件</strong>--%>
					<%--</td>--%>
				</tr>
				<tr>
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%">
							<%--<tr>--%>
								<%--<td height="22" align="center" bgColor="#f5fafe" class="ta_01">--%>
									<%--订单编号</td>--%>
								<%--<td class="ta_01" bgColor="#ffffff">--%>
									<%--<input type="text" name="id" size="15" value="" id="Form1_userName" class="bg" />--%>
								<%--</td>--%>
								<%--<td height="22" align="center" bgColor="#f5fafe" class="ta_01">--%>
									<%--收件人：</td>--%>
								<%--<td class="ta_01" bgColor="#ffffff">--%>
									<%--<input type="text" name="receiverName" size="15" value="" id="Form1_userName" class="bg" />--%>
								<%--</td>--%>
							<%--</tr>--%>
							<%--<tr>--%>
								<%--<td width="100" height="22" align="center" bgColor="#f5fafe" class="ta_01"></td>--%>
								<%--<td class="ta_01" bgColor="#ffffff">--%>
									<%--<font face="宋体" color="red"> &nbsp;</font>--%>
								<%--</td>--%>
								<%--<td align="right" bgColor="#ffffff" class="ta_01">--%>
									<%--<br /><br />--%>
								<%--</td>--%>
								<%--<td align="right" bgColor="#ffffff" class="ta_01">--%>
									<%--<button type="submit" id="search" name="search" value="&#26597;&#35810;" class="button_view">--%>
										<%--&#26597;&#35810;--%>
									<%--</button> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --%>
									<%--<input type="reset" name="reset" value="&#37325;&#32622;" class="button_view" />--%>
								<%--</td>--%>
							<%--</tr>--%>
						</table>
					</td>
				</tr>
				<tr>
					<td class="ta_01" align="center" bgColor="#afd1f3">
						<strong>订 单 列 表</strong>
					</td>
				</tr>
				<tr>
					<td class="ta_01" align="right"></td>
				</tr>
				<tr>
					<td class="ta_01" align="center" bgColor="#f5fafe">
						<table cellspacing="0" cellpadding="1" rules="all"
							bordercolor="gray" border="1" id="tableDate1"
							style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
							<tr style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
								<td align="center" width="20%">订单编号</td>
								<td align="center" width="15%">商品名</td>
								<td align="center" width="10%">商品价格</td>
								<td width="11%" align="center">总价</td>
							</tr>
							<c:forEach items="${comm}" var="order">
								<tr onmouseover="this.style.backgroundColor = 'white'"
									onmouseout="this.style.backgroundColor = '#F5FAFE';">
									<td style="CURSOR: hand; HEIGHT: 22px" align="center" width="20%">${order.cID}</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center" width="15%">${order.cName }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center" width="10%">${order.cPrice }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center">${money}</td>
								</tr>
							</c:forEach>
						</table>
					</td>
				</tr>
			</TBODY>
		</table>
		<%--<button id="export">打印表格</button>--%>
	<input type="button" id="export" onclick="oncl()" value="打印">
	<%--</form>--%>

	<script>
            //导出表格
            function oncl() {

                var table2excel = new Table2Excel();

                table2excel.export(document.getElementById('tableDate1'));

            }
            // document.getElementById('export').addEventListener('click', function() {
            //
            // });

	</script>
</body>
</HTML>